package com.macro.mall.portal.service;

import com.macro.mall.dto.PmsProductAttributeCategoryItem;
import com.macro.mall.model.CmsSubjectComment;
import com.macro.mall.model.PmsProductAttributeCategory;

import java.util.List;

/**
 * 商品属性分类Service
 * https://gitee.com/zscat-platform/mall on 2018/4/26.
 */
public interface PmsProductAttributeCategoryService {
    int create(String name);

    int update(Long id, String name);

    int delete(Long id);

    PmsProductAttributeCategory getItem(Long id);

    List<PmsProductAttributeCategory> getList(Integer pageSize, Integer pageNum);

    List<PmsProductAttributeCategoryItem> getListWithAttr();

    List<CmsSubjectComment> list(PmsProductAttributeCategory productAttributeCategory, Integer pageSize, Integer pageNum);
}
